package com.datacans.app.exception;

public class AccessViolationException extends RuntimeException {


    private static final long serialVersionUID = 1L;

    public static final int TOKEN_MISSING = 0;
    public static final int TOKEN_INVALID = 1;
    public static final int ACCESS_DENIED = 2;
    public static final int TOKEN_EXPIRED = 3;

    private int status;
    private String message;

    public AccessViolationException(int status) {
        this.status = status;
    }

    public AccessViolationException(int status, String message) {
        this.message = message;
        this.status = status;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }


}
